package com.dragon.mmochat.model.battle;

import java.io.Serializable;

import com.dragon.mmochat.model.enumType.MmochatSmeType;

//动画效果
public class MmochatSme implements Serializable {
	private static final long serialVersionUID = 6243172699108533782L;
	private MmochatSmeType type = MmochatSmeType.无; // 动画类型
	private int keepRound = 0; // 保持回合数
	private int defendTimes = 0;// 抵抗回合数
	private double value = 0;// 数据
	private double value2 = 0;// 数据

	public MmochatSme() {
	}

	public MmochatSme(MmochatSmeType type) {
		this.type = type;
	}

	public MmochatSme(MmochatSmeType type, int keepRound) {
		this.type = type;
		this.keepRound = keepRound;
	}

	public MmochatSmeType getType() {
		return type;
	}

	public void setType(MmochatSmeType type) {
		this.type = type;
	}

	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	public void addValue(double add) {
		value += add;
	}

	public int getKeepRound() {
		return keepRound;
	}

	public void setKeepRound(int keepRound) {
		this.keepRound = keepRound;
	}

	public void decreaseKeepRound() {
		keepRound--;
		keepRound = Math.max(0, keepRound);
	}

	public int getDefendTimes() {
		return defendTimes;
	}

	public void setDefendTimes(int defendTimes) {
		this.defendTimes = defendTimes;
	}

	public void decreaseDefendTimes() {
		defendTimes--;
		defendTimes = Math.max(0, defendTimes);
	}

	public double getValue2() {
		return value2;
	}

	public void setValue2(double value2) {
		this.value2 = value2;
	}

}
